import { TypedUseSelectorHook, useSelector } from 'react-redux';
import { createStore } from 'redux';
import rootReduer from './reducer';

const store = createStore(rootReduer);
export default store;

export type RootState = ReturnType<typeof store.getState>;
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
